<?php
	require_once(dirname(__FILE__)."/../include/common.inc.php");
	require_once(DEDEINC.'/enums.func.php');
	require_once(dirname(__FILE__)."/../include/province_short.inc.php");
	require_once(dirname(__FILE__)."/../include/province_picture.inc.php");


	$sid = rtrim($sid,',');
    $sids = explode(',', $sid);
    // 查询数据库
    $inquery = "SELECT * FROM `#@__collegeinfo` col,`#@__collegeinfo_detail` coldetail WHERE col.collegeId in ($sid) AND coldetail.collegeId in ($sid) AND col.collegeId=coldetail.collegeId";
    $dsql->SetQuery($inquery);
    $dsql->Execute();
    $collegeinfo_totle = array();
    while($row = $dsql->GetArray()){
    	$collegeinfo_totle[]=$row;
    }

	//显示模板(简单PHP文件)
	include_once(DEDETEMPLATE.'/plus/college_contrast.htm');


// 对学费前台样式进行处理
function DealFee($lowet_fee,$highest_fee){
	$fee = '';
	if (!$lowet_fee) {
		$lowet_fee = 0;
	}
	$fee = $lowet_fee.'万';
	if ($highest_fee) {
		$fee .= '-'.$highest_fee.'万';
	}
	return $fee;
}

/**
 * 处理联动菜单值多个的情况
 * $egroup 为联动组
 * $evalue 为联动值，多个联动值的用","分隔
 */
function deal_multivalue($egroup,$evalue){
	$arr_value = explode(',', $evalue);
	$str_value = "";
	foreach ($arr_value as $key => $value) {
		$str_value .= GetEnumsValue($egroup,$value).','; 
	}
	$str_value = rtrim($str_value,',');
	return $str_value;
}
?>